<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'order_detail.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  <%request.setCharacterEncoding("UTF-8"); %>
   
   
  
    	<h3 align="center">请确认您的详细信息</h3>
     
     
            <table align="center" border="0">
            
            <tr><td>图书名称</td>
            <td>价格</td>
            <td>数量</td>
            <td>小计</td>
            </tr>
            <c:forEach items="${requestScope.order.orderlists }" var="ol">
            <tr>
            <td>${ ol.book.bookname}</td>
            <td>${ol.book.bookprice}</td>
            <td>${ol.olcount }</td>
            <td>${ol.olcount*ol.book.bookprice }</td>
            </tr>
            </c:forEach>
            <tr><td>收货地址：</td><td>${order. oaddress}</td></tr>
            
            </table>
            <form action="main.jsp">
           <input type="submit" >
           </form>
  </body>
</html>
